package org.jiuling.aliyun.config.enums;

/**
 * 服务点接入
 * @author 紫灵
 * @date 2023年01月03日 21时40分16秒
 */
public enum ServiceAccessPointEnum {

    /** 亚太 */
    QINGDAO("华北1（青岛）","cn-qingdao","dysmsapi.aliyuncs.com",""),
    BEIJING("华北2（北京）","cn-beijing","dysmsapi.aliyuncs.com",""),
    ZHANGJIAKOU("华北3（张家口）","cn-zhangjiakou","dysmsapi.aliyuncs.com",""),
    HUHEHAOTE("华北5（呼和浩特）","cn-huhehaote","dysmsapi.aliyuncs.com",""),
    WULANCHABU("华北6（乌兰察布）","cn-wulanchabu","dysmsapi.aliyuncs.com",""),
    HANGZHOU("华东1（杭州）","cn-hangzhou","dysmsapi.aliyuncs.com",""),
    SHANGHAI("华东2（上海）","cn-shanghai","dysmsapi.aliyuncs.com",""),
    SHENZHEN("华南1（深圳）","cn-shenzhen","dysmsapi.aliyuncs.com",""),
    CHENGDU("西南1（成都）","cn-chengdu","dysmsapi.aliyuncs.com",""),
    HONGKONG("中国（香港）","cn-hongkong","dysmsapi.aliyuncs.com","dysmsapi-xman-vpc.cn-hongkong.aliyuncs.com"),
    TOKYO("日本（东京）","ap-northeast-1","dysmsapi.ap-southeast-1.aliyuncs.com",""),
    SINGAPORE("新加坡","ap-southeast-1","dysmsapi.ap-southeast-1.aliyuncs.com",""),
    SYDNEY("澳大利亚（悉尼）","ap-southeast-2","dysmsapi.ap-southeast-1.aliyuncs.com",""),
    KUALA_LUMPUR("马来西亚（吉隆坡）","ap-southeast-3","dysmsapi.ap-southeast-1.aliyuncs.com",""),
    JAKARTA("印度尼西亚（雅加达）","ap-southeast-5","dysmsapi.ap-southeast-1.aliyuncs.com","dysmsapi-xman-vpc.ap-southeast-5.aliyuncs.com"),

    /** 欧洲与美洲 */
    VIRGINIA("美国（弗吉尼亚）","us-east-1","dysmsapi.ap-southeast-1.aliyuncs.com",""),
    SILICON_VALLEY("美国（硅谷）","us-west-1","dysmsapi.ap-southeast-1.aliyuncs.com",""),
    LONDON("英国（伦敦）","eu-west-1","dysmsapi.ap-southeast-1.aliyuncs.com",""),
    FRANKFURT("德国（法兰克福）","eu-central-1","dysmsapi.ap-southeast-1.aliyuncs.com",""),

    /** 中东与印度 */
    MUMBAI("印度（孟买）","ap-south-1","dysmsapi.ap-southeast-1.aliyuncs.com",""),
    DUBAI("阿联酋（迪拜）","me-east-1","dysmsapi.ap-southeast-1.aliyuncs.com",""),

    /** 行业云 */
    HANGZHOU_FINANCE("华东1 金融云","cn-hangzhou-finance","dysmsapi.aliyuncs.com",""),
    SHANGHAI_FINANCE("华东2 金融云","cn-shanghai-finance-1","dysmsapi.aliyuncs.com",""),
    SHENZHEN_FINANCE("华南1 金融云","cn-shenzhen-finance-1","dysmsapi.aliyuncs.com",""),
    BEIJING_FINANCE("华北2 金融云","cn-beijing-finance-1","dysmsapi.aliyuncs.com","");

    /** 地域名称 */
    private final String areaName;
    /** 地域ID */
    private final String areaId;
    /** 公网接入地址 */
    private final String publicAccessAddress;
    /** VPC接入地址 */
    private final String vpcAccessAddress;

    ServiceAccessPointEnum(String areaName, String areaId, String publicAccessAddress, String vpcAccessAddress) {
        this.areaName = areaName;
        this.areaId = areaId;
        this.publicAccessAddress = publicAccessAddress;
        this.vpcAccessAddress = vpcAccessAddress;
    }

    public String getAreaName() {
        return areaName;
    }

    public String getAreaId() {
        return areaId;
    }

    public String getPublicAccessAddress() {
        return publicAccessAddress;
    }

    public String getVpcAccessAddress() {
        return vpcAccessAddress;
    }
}
